package com.powernode.constant;

/**
 * @Author:huxiaochao
 * @Description:
 * @DateTime:2025-03-07 16:07
 **/
public enum BusinessEnum {
    OPERATION_FAIL(-1,"操作失败"),
    SERVER_INNER_ERROR(9999,"服务器内部错误"),
    UN_AUTHORIZATION(401,"未授权"),
    ACCESS_DENY_FAIL(403,"权限不足,请联系管理员"),
    ;

    BusinessEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    //1.响应状态
    private Integer code;

    //2.响应信息
    private String desc ;


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
